﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WithholdMoneyReport.aspx.cs"
	Inherits="Basic4Net.OAWeb.Module_Report.WithholdMoneyReport" %>

<!DOCTYPE html PUBLIC "-//W3C//Dth XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dth/xhtml1-transitional.dth">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title></title>
	<link href="../App_Themes/ui-lightness/main.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
		function TopClick() {
			document.getElementById("txt_Go").value = 1;
			document.getElementById("btnBind").click();
			document.getElementById("lbl_ToPage").innerHTML = 1;
		}

		function UpClick() {
			var txt = document.getElementById("txt_Go");
			if (parseInt(txt.value) > 1) {
				txt.value = parseInt(txt.value) - 1;
				document.getElementById("btnBind").click();
				document.getElementById("lbl_ToPage").innerHTML = document.getElementById("txt_Go").value;
			}
		}

		function NextClick() {
			var txt = document.getElementById("txt_Go");
			if (parseInt(txt.value) < parseInt(document.getElementById("lbl_PageCount").innerHTML)) {
				txt.value = parseInt(txt.value) + 1;
				document.getElementById("btnBind").click();
				document.getElementById("lbl_ToPage").innerHTML = document.getElementById("txt_Go").value;
			}
		}

		function EndClick() {
			document.getElementById("txt_Go").value = document.getElementById("lbl_PageCount").innerHTML;
			document.getElementById("btnBind").click();
			document.getElementById("lbl_ToPage").innerHTML = document.getElementById("txt_Go").value;
		}

		function GoClick() {
			var txt = document.getElementById("txt_Go");
			if (parseInt(txt.value) >= parseInt(document.getElementById("lbl_PageCount").innerHTML)) {
				txt.value = document.getElementById("lbl_PageCount").innerHTML;
			}
			document.getElementById("btnBind").click();
			var patrn = /^[1-9]\d*$/;
			if (patrn.exec(txt.value)) {
			    document.getElementById("lbl_ToPage").innerHTML = txt.value;
			} 
		}
	</script>
</head>
<body>
	<form id="form1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
	</asp:ScriptManager>
	<br />
	<div class="mainWarp">
		<div class="pageBody">
			<asp:UpdatePanel ID="pUpdatePanel" runat="server">
				<ContentTemplate>
					<p align="center">
						<span style="text-align: center;">
							<asp:DropDownList ID="ddl_Term" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_Term_SelectedIndexChanged">
							</asp:DropDownList>
							<font size="4">学期教职工奖教奖学评比结果</font></span>
					</p>
					<asp:Repeater ID="pRepeater" runat="server">
						<HeaderTemplate>
							<table class="useList1" style="width: 96%">
								<tr>
									<th width="20%">
										编号
									</th>
									<th width="25%">
										姓名
									</th>
									<th width="25%">
										评价分数
									</th>
									<th width="30%">
										评价等级
									</th>
								</tr>
						</HeaderTemplate>
						<ItemTemplate>
							<tr>
								<td style="text-align: left;">
									<%#Eval("Code")%>
								</td>
								<td style="text-align: left;">
									<%#Eval("Name")%>
								</td>
								<td style="text-align: right;">
									<%#Eval("ActualWorkload")%>
								</td>
								<td style="text-align: center;">
									<%# GetName((double)Eval("WithholdMoney"))%>
								</td>
							</tr>
						</ItemTemplate>
						<FooterTemplate>
							</table>
						</FooterTemplate>
					</asp:Repeater>
					<div class="page" style="width: 60%; margin-top: 10px">
						<span>
							<input id="lbnTop" type="button" value="首页" class="commonBut" onclick="TopClick()" /></span>
						<span>
							<input id="lbnUp" type="button" value="上一页" class="commonBut" onclick="UpClick()" /></span>
						<span>
							<input id="lbnNext" type="button" value="下一页" class="commonBut" onclick="NextClick()" /></span>
						<span>
							<input id="lbnEnd" type="button" value="末页" class="commonBut" onclick="EndClick()" /></span>
						<span class="disabled">
							<asp:Label ID="lbl_L_Di" runat="server" Text="第"></asp:Label>
							<asp:Label ID="lbl_ToPage" runat="server" Text="0"></asp:Label>
							/
							<asp:Label ID="lbl_PageCount" runat="server" Text="0"></asp:Label>
							<asp:Label ID="lbl_L_Yie" runat="server" Text="页"></asp:Label></span> <span>
								<asp:Label ID="lbl_L_TD" runat="server" Text="跳到"></asp:Label><span class="shoppingnumber">
									<asp:TextBox ID="txt_Go" CssClass="logininput" Text="" runat="server" Width="50px"></asp:TextBox>
									<asp:RegularExpressionValidator ID="REV_Go" runat="server" ErrorMessage="RegularExpressionValidator"
										Display="Dynamic" ControlToValidate="txt_Go" ValidationExpression="^[1-9]\d*$">*</asp:RegularExpressionValidator>
								</span>
								<asp:Label ID="lbl_L_Yie2" runat="server" Text="页"></asp:Label></span> <span>
									<input id="lbnGo" type="button" value="跳转" class="commonBut" onclick="GoClick()" /></span>
					</div>
				</ContentTemplate>
				<Triggers>
					<asp:AsyncPostBackTrigger ControlID="btnBind" EventName="Click" />
				</Triggers>
			</asp:UpdatePanel>
		</div>
		<div style="display: none;">
			<asp:Button ID="btnBind" runat="server" OnClick="btnBind_Click" Text="btnBind" />
		</div>
	</div>
	</form>
</body>
</html>
